import Vue from 'vue'
import VueRouter from 'vue-router'


import goods from "./pages/goods.vue"
import goods1 from "./pages/goods1.vue"
import goods2 from "./pages/goods2.vue"
import search from "./pages/search.vue"
import index from "./pages/index.vue"
import buycar from "./pages/buycar.vue";
import details from "./pages/details.vue";
import select from "./pages/select.vue";
import my from "./pages/my.vue";
import buycartwo from "./pages/buy-two.vue"
import login from "./pages/login.vue";

Vue.use(VueRouter);

var routes = [
	{path:'/buy', component:buycar},
	{path:'/details' , component:details},
	{path:'/select',component:select},
	{path:'/goods', component:goods},
	{path:'/goods1', component:goods1},
	{path:'/goods2', component:goods2},
	{path:'/search',component:search},
	{path:'/my',component:my},
	{path:'/', component:index},
	{path:'/buytwo', component:buycartwo},
	{path:'/login', component:login}
]
var router = new VueRouter({routes, mode:'history'});
export default router;